25703e049d442898b9d655a1134d00e7612f5ae3,portal-web/test/com/liferay/portalweb/plugins/kaleo/workflow/workflowtask/viewpaginationtaskmbmessage/AddMBMessage16Test.java,AddMBMessage16Test,testAddMBMessage16,#,24
Before Change
}
try {
if (selenium.isElementPresent("link=Control Panel")) {
break;
}
}
catch (Exception e) {
}
Thread.sleep(1000);
}
selenium.clickAt("link=Control Panel",
RuntimeVariables.replace("Control Panel"));
selenium.waitForPageToLoad("30000");
loadRequiredJavaScriptModules();
selenium.clickAt("link=Message Boards",
RuntimeVariables.replace("Message Boards"));
selenium.waitForPageToLoad("30000");
loadRequiredJavaScriptModules();
assertEquals(RuntimeVariables.replace("MB Category Name"),
selenium.getText("//td[2]/a/strong"));
selenium.clickAt("//td[2]/a/strong",
RuntimeVariables.replace("MB Category Name"));
selenium.waitForPageToLoad("30000");
loadRequiredJavaScriptModules();
selenium.clickAt("//input[@value='Post New Thread']",
RuntimeVariables.replace("Post New Thread"));
selenium.waitForPageToLoad("30000");
loadRequiredJavaScriptModules();
selenium.type("//input[@id='_162_subject']",
RuntimeVariables.replace("MB Category Thread16 Message Subject"));
Thread.sleep(5000);
for (int second = 0;; second++) {
if (second >= 90) {
After Change
catch (Exception e) {
}
Thread.sleep(1000);
}
selenium.type("//td[@id='cke_contents__162_editor']/textarea",
RuntimeVariables.replace("MB Category Thread16 Message Body"));
assertEquals(RuntimeVariables.replace("Source"),
selenium.getText("//span[@id='cke_34_label' and .='Source']"));
selenium.clickAt("//span[@id='cke_34_label' and .='Source']",
RuntimeVariables.replace("Source"));
for (int second = 0;; second++) {
if (second >= 90) {
fail("timeout");
}
try {
if (selenium.isElementPresent(
"//textarea[@id='_162_editor' and @style='display: none;']")) {
break;
}
}
catch (Exception e) {
}
Thread.sleep(1000);
}
for (int second = 0;; second++) {
if (second >= 90) {
fail("timeout");
}
try {
if (selenium.isVisible(
"//td[@id='cke_contents__162_editor']/iframe")) {
break;
}
}
catch (Exception e) {
}
Thread.sleep(1000);
}
selenium.selectFrame("//td[@id='cke_contents__162_editor']/iframe");
for (int second = 0;; second++) {
if (second >= 90) {
fail("timeout");
}
try {
if (RuntimeVariables.replace(
"MB Category Thread16 Message Body")
.equals(selenium.getText("//body"))) {
break;
}
}
catch (Exception e) {
}
Thread.sleep(1000);
}
selenium.selectFrame("relative=top");